﻿namespace CIK.News.Domain.Mappings
{
    public class CategoryMapping : EntityMappingBase<Category>
    {
        public CategoryMapping()
        {
            Property(x => x.Name).IsRequired();

            HasMany(x => x.Items).WithRequired(y => y.Category);

            ToTable("Category");
        }
    }
}